package com.tz.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by longquan on 2016-10-9.
 */

@Component
public class ClassB {

    @Autowired
    private InterfaceC c;

    public void m(){
        System.out.println("b.m()的运行代码");
        c.method();
    }
}
